module ApplicationHelper
  
  def default_text(text)
    onFocusFunction = "if (this.value=='#{text}') {this.value = '';}"
    
    onBlurFunction = "if (this.value=='') {this.value = '#{text}';}else {return false}"
      
    {:value => text, :onfocus => onFocusFunction, :onblur => onBlurFunction}   
  end
    
end
